<template>
  <div>
    <el-input v-model="demo.name"></el-input>
    {{value}}
  </div>
</template>
<script>
  export default {
    name: 'index',
    data() {
      return {
        demo: {
          name: ''
        },
        value: ''
      };
    },
    computed: {
      newNama() {
          alert('修改了demo.name')
        return this.demo.name;
      }
    },
    watch: {
      newNama(val) {
        this.value = val+'ime';
        alert(this.value)
      }
    }
  };
</script>